package guoanmaker.operator.business.repository;

import guoanmaker.operator.business.model.OperatorProvince;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

/**
 *  
 *
 * @author huZhaoyu 
 * @ClassName: OperatorProvinceRepository
 * @Description: 省份Repository
 * @date 2017/7/12
 */
public interface OperatorProvinceRepository extends JpaRepository<OperatorProvince, String>, JpaSpecificationExecutor<OperatorProvince> {
    //	@Query("select u from OperatorUser u left join fetch u.roles r where u.username=:username")
//    public Optional<OperatorUser> findByUsername(@Param("username") String username);
    Integer countAllByIdIsNotNull();
}